package clock;

public class Clock
{
	Display hours=new Display(24);
	Display minuse=new Display(60);
	Display seduce=new Display(60);
	public void start()
	{
		while(true){
		seduce.increase();
		if(seduce.getValue()==0)
			minuse.increase();
		if(minuse.getValue()==0)
		{
			hours.increase();
		}
		System.out.printf("%02d:%02d:%02d\n",hours.getValue(),minuse.getValue(),seduce.getValue());
	}
	}
	
	public static void main(String[] args)
	{
		
		
			Clock clock=new Clock();
			clock.start();
	}
}
